﻿<%@ Assembly Name="WebpartSample, Version=1.0.0.0, Culture=neutral, PublicKeyToken=8294021ee782c3a7" %>
<%@ Assembly Name="Microsoft.Web.CommandUI, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> 
<%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> 
<%@ Register Tagprefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register Tagprefix="asp" Namespace="System.Web.UI" Assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" %>
<%@ Import Namespace="Microsoft.SharePoint" %> 
<%@ Register Tagprefix="WebPartPages" Namespace="Microsoft.SharePoint.WebPartPages" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="PhotosWebpartUserControl.ascx.cs" Inherits="WebpartSample.PhotosWebpart.PhotosWebpartUserControl" %>
<style type="text/css">
    .WidGetGp
    {
        width:180px;
        height:130px;
    }
</style>
  <link href="/_layouts/WebpartSample/style/jquery-ui.css" rel="stylesheet" type="text/css"/>
  <script src="/_layouts/WebpartSample/script/jquery.min.js"></script>
  <script src="/_layouts/WebpartSample/script/jquery-ui.min.js"></script>
  <asp:Literal ID="Literal2" runat="server"></asp:Literal>
<div style="visibility:hidden">
<div id="addNewRecord" >
testmsg</div></div>

<asp:Literal ID="Literal1" runat="server"></asp:Literal>
currInx=0;
var tt;
function callmePopup(){
$('addNewRecord').dialog(
    {
        autoOpen: true,
        width: 570,
        bgiframe: true,
        resizable: false,
        height:490,
        modal: true
    });
}
function startTim()
{

        tt= setInterval(function () {
            if (currInx >= max - 1)
                currInx = 0;
            else
                currInx++;
            callMeToChangeImage();
        }, 2000);
    }
   $(document).ready(function () {

    startTim(); 
    
});

    function callMeToChangeImage() {
       $('#imgDisp').attr("src",imgs[currInx]);
        $('#spanTex').html("<strong>"+txt[currInx]+"</strong>");
    }
</script>